package clientin

type RegisterInp struct {
	Username        string `json:"username" v:"required#用户名不能为空" dc:"用户名"`
	NickName        string `json:"nickName" v:"required#昵称不能为空" dc:"昵称"`
	Password        string `json:"password" v:"required|same:ConfirmPassword#密码不能为空|两次密码不一致" dc:"密码"`
	ConfirmPassword string `json:"confirmPassword" v:"required#确认密码不能为空" dc:"确认密码"`
	PhoneNum        string `json:"phoneNum" v:"required#手机号不能为空" dc:"手机号"`
	Email           string `json:"email" v:"required#邮箱不能为空" dc:"邮箱"`
	Wechat          string `json:"wechat" v:"required#微信不能为空" dc:"微信"`
	Type            int    `json:"type" v:"required#请选择类型" dc:"类型"`
}

type RegisterModel struct {
	Id       int64  `json:"id"              dc:"用户ID"`
	Username string `json:"username"        dc:"用户名"`
}

type LoginInp struct {
	Username string `json:"username" v:"required#用户名不能为空" dc:"用户名"`
	Password string `json:"password" v:"required#密码不能为空" dc:"密码"`
}

type LoginModel struct {
	Id       int64  `json:"id"              dc:"用户ID"`
	Username string `json:"username"        dc:"用户名"`
	Token    string `json:"token"           dc:"登录token"`
	Expires  int64  `json:"expires"         dc:"登录有效期"`
}
